import oss2
import yaml

class OSSSDK(object):
    
    def __init__(self):
        __init_oss_service()

    def __init_oss_service(self):
        with open("AccessKey.yaml", 'r') as fd:
            yaml_file = yaml.load(fd)
            self.accessKeyID = yaml_file["SummyChou"]["AccessKeyID"]
            self.accessKeySecret = yaml_file["SummyChou"]["AccessKeySecret"]
        self.auth = oss2.Auth(self.accessKeyID, self.accessKeySecret)
        self.service = oss2.Service(self.auth, "oss-cn-shanghai.aliyuncs.com")

    def create_bucket(self):
        pass

    def delete_bucket(self):
        pass

    def select_file(self):
        pass

    def upload_file(self):
        pass

    def download_file(self):
        pass

    def delete_file(self):
        pass
    